/*
 ============================================================================
 Name		: CommonXBaseDocument.cpp
 Author	  : Cxt_programmer
 Copyright   : Your copyright notice
 Description : CCommonXBaseDocument implementation
 ============================================================================
 */

// INCLUDE FILES
#include "CommonXBaseAppUi.h"
#include "CommonXBaseDocument.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CCommonXBaseDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CCommonXBaseDocument* CCommonXBaseDocument::NewL(
		CEikApplication& aApp)
	{
	CCommonXBaseDocument* self = NewLC(aApp);
	CleanupStack::Pop(self);
	return self;
	}

// -----------------------------------------------------------------------------
// CCommonXBaseDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CCommonXBaseDocument* CCommonXBaseDocument::NewLC(
		CEikApplication& aApp)
	{
	CCommonXBaseDocument* self = new (ELeave) CCommonXBaseDocument(
			aApp);

	CleanupStack::PushL(self);
	self->ConstructL();
	return self;
	}

// -----------------------------------------------------------------------------
// CCommonXBaseDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CCommonXBaseDocument::ConstructL()
	{
	// No implementation required
	}

// -----------------------------------------------------------------------------
// CCommonXBaseDocument::CCommonXBaseDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CCommonXBaseDocument::CCommonXBaseDocument(CEikApplication& aApp) :
	CAknDocument(aApp)
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CCommonXBaseDocument::~CCommonXBaseDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CCommonXBaseDocument::~CCommonXBaseDocument()
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CCommonXBaseDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CCommonXBaseDocument::CreateAppUiL()
	{
	// Create the application user interface, and return a pointer to it;
	// the framework takes ownership of this object
	return new (ELeave) CCommonXBaseAppUi;
	}

// End of File
